package cn.ycxy.lbl.pojo.posts.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;


@Data
@ApiModel("帖子评论新增DTO")
public class CommentAddDTO{

    @ApiModelProperty(value = "所属帖子id")
    @NotNull(message = "所属帖子id不能为空!")
    private Long postsId;

    @ApiModelProperty(value = "用户id")
    private Integer userId;

    @ApiModelProperty(value = "服务类型: 0-失物招领、拼车服务; 1-二手交易")
    @NotNull(message = "服务类型不能为空!")
    private Integer serveType;

    @ApiModelProperty(value = "评论的实体类型: 1-帖子;2-评论;3-用户")
    @NotNull(message = "评论的实体类型不能为空!")
    private Integer entityType;

    @ApiModelProperty(value = "实体id")
    @NotNull(message = "实体id不能为空!")
    private Long entityId;

    @ApiModelProperty(value = "目标用户id")
    private Long targetId;

    @ApiModelProperty(value = "评论内容")
    @NotNull(message = "评论内容不能为空!")
    private String content;

    @ApiModelProperty(value = "状态,保留字段")
    private Integer status;

    @ApiModelProperty(value = "数据创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "数据最后更新时间")
    private LocalDateTime updateTime;


}
